﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Framework_Tool
{
    /// <summary>
    /// Interaction logic for StaffSearch.xaml
    /// </summary>
    public partial class StaffSearch : Page
    {
        private MainWindow main;

        public StaffSearch()
        {
            InitializeComponent();
        }

        private void RadioButton_Checked(object sender, RoutedEventArgs e)
        {
            
        }

        private void addStaff_Click(object sender, RoutedEventArgs e)
        {
            StaffAdd stfAddWindow = new StaffAdd(main);
            stfAddWindow.Content = null;
            mainContent.Children.Add(stfAddWindow.mainContent);
        }

        private void updateStaff_Click(object sender, RoutedEventArgs e)
        {
            StaffUpdate stfUpdateWindow = new StaffUpdate();
            stfUpdateWindow.Content = null;
            mainContent.Children.Add(stfUpdateWindow.mainContent);
        }

        private void deleteStaff_Click(object sender, RoutedEventArgs e)
        {
            StaffDelete stfDeleteWindow = new StaffDelete();
            stfDeleteWindow.Content = null;
            mainContent.Children.Add(stfDeleteWindow.mainContent);
        }

        private void viewStaff_Click(object sender, RoutedEventArgs e)
        {
            StaffView stfViewWindow = new StaffView();
            stfViewWindow.Content = null;
            mainContent.Children.Add(stfViewWindow.mainContent);
        }

        private void stfSearch_Click_1(object sender, RoutedEventArgs e)
        {

        }

        private void mainContent_Loaded_1(object sender, RoutedEventArgs e)
        {
            viewStaff.FontWeight = FontWeights.Normal;
            addStaff.FontWeight = FontWeights.Normal;
            updateStaff.FontWeight = FontWeights.Normal;
            deleteStaff.FontWeight = FontWeights.Normal;
            searchStaff.FontWeight = FontWeights.ExtraBold;

        }
    }
}
